'''
while循环
for循环
break：终止循环
continue：跳过当前循环
return：也可以终止循环
'''
'''while True:#死循环
    print("hello")
'''
i = 1
while i<=100:
    print("我错了")
    i = i + 1
#打印矩形
j =1
while j<=9:
    print("&&&&&$$$$")
    j+=1
#打印乘法口诀表
i=1
while i<=9:
    o=1
    while o<=i:
        print("%d*%d=%d "%(i,o,i*o),end="")
        o+=1
    print("")
    i+=1
#遍历容器，字符串，列表，集合...
#直接遍历对象本身
str1="你好，北京"
for i in str1:
    print(i)

alist =[10,20,30,40,50,60,70,80,90,123781,3128]
for s in alist:
    print(s)
#指定区间遍历
for s in range(1,10):
    print(s)
for s in range(0,10,2):
    print(s)
for s in range(10,0,-1):
    print(s)
